/* 
 *  <copyright file="BaseCommand.cs" company="Wesley Jowitt">
 *  
 *  SobrietyEngine: Copyright (c) 2011 Wesley Jowitt
 *  
 *  This software is distributed under a software license.
 *   * As of the creation time of this file, the license in use is the Microsoft Permissive License (Ms-PL) 
 *    * The license can be viewed at:
 *     * License.Txt in the root folder of this project
 *      * http://sobrietyengine.codeplex.com/license
 *       * http://www.microsoft.com/opensource/licenses.mspx
 *       
 *  </copyright>
 *   */

using System;

using SobrietyEngine.Guids;

namespace SobrietyEngine.Commands
{
    class BaseCommand: ICommand
    {
        String Type;
        CGuid Guid;

        public BaseCommand(String name, String type)
        {
            Type = type;
            Guid = CGuid.Create(name, this);
        }

        #region ICommand Members

        public void Execute()
        {
            throw new Exception("The method or operation is not implemented.");
        }

        public CGuid GetGuid()
        {
            return Guid;
        }

        public new string GetType()
        {
            return Type;
        }

        #endregion
    }
}
